<div id="account">
{if $input}
{literal}
<script type="text/javascript">
$(function() {
$('.password').minchar;
$('.password').pstrength();
});
</script>
{/literal}
<form method="post" action="index.php">
{/if}
<table border="0" width="100%">
<tr><th>Username</th><td>{varinput name="username" value=$account_username input=$input}</td></tr>
<tr><th>First&nbsp;Name</th><td>{varinput name="firstname" value=$account_firstname input=$input}</td></tr>
<tr><th>Last&nbsp;Name</th><td>{varinput name="lastname" value=$account_lastname input=$input}</td></tr>
<tr><th>Email</th><td>{varinput name="email" value=$account_email input=$input}</td></tr>
<tr><th>Last&nbsp;Login</th><td><span style="font-size: smaller;">{$account_lastlogin}</span></td></tr>
{if $input}
<tr><td colspan="2" align="center"><hr /><span style="font-size: smaller; font-weight: bold;">Leave Blank To Keep Current Password</span></td></tr>
<tr><th>New&nbsp;Password</th><td><input type="password" name="password1" class="password" /></td></tr>
<tr><th>Repeated</th><td><input type="password" name="password2" /></td></tr>
<tr><td colspan="2"><hr /></td></tr>
<tr><th>User Code</th><td><span style="font-size: small;">{$account_code}</span></td></tr>
<tr><td colspan="2" style="font-size: smaller; text-align: center;">This code is used with offline applications to securely access your citations database. If you think your code has been compromised, generate a new one by checking the box below and then clicking the save button.</td></tr>
<tr><td colspan="2" style="text-align: center;"><input type="checkbox" name="gen_new_code" id="gen_new_code"/><label for="gen_new_code">&nbsp;Generate New Code</label></td></tr>
<tr><td colspan="2"><hr /></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="Save User Account" /></td></tr>
{/if}
</table>
{if $input}
<input type="hidden" name="p" value="account" />
<input type="hidden" name="ID" value="{$account_ID}" />
</form>
{/if}
</div>
